package com.example.common.enums;

public enum ResultCodeEnum {
    SUCCESS("200", "成功"),
    PARAM_ERROR("400", "请正确输入合法数据"),
    TOKEN_INVALID_ERROR("401", "无效的token"),
    USER_NOT_LOGIN("403", "用户未登录"),
    USER_EXIST_ERROR("409", "用户名已存在"),
    SYSTEM_ERROR("500", "系统异常"),
    USER_ACCOUNT_ERROR("503", "账号或密码错误"),
    USER_NOT_EXIST_ERROR("504", "用户不存在"),
    PARAM_PASSWORD_ERROR("505", "原密码输入错误"),
    RESET_INFORMATION_ERROR("506","您提供的信息不正确"),
    IP_EXIST_ERROR("509", "IP已存在"),
    VERIFICATION_CODE_EXPIRED("511","验证码已过期，请重新获取"),
    CODE_KEY_ERROR("512","验证码错误"),
    PHONE_FORMAT_ERROR("513","手机格式错误"),
    EMAIL_ERROR("514","您提供的邮箱地址存在错误")
    ;

    public String code;
    public String msg;

    ResultCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
